import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'
import { Picker } from 'emoji-mart-vue-fast'
import axios from 'axios'  // 添加这一行引入axios

const app = createApp(App)
const pinia = createPinia()

app.use(pinia)
app.use(router)
app.component('Picker', Picker)  // 移到这里，在 mount 之前注册
app.mount('#app')


// 配置 Axios 默认请求头，禁用缓存
axios.defaults.headers.common['Cache-Control'] = 'no-cache, no-store, must-revalidate';
axios.defaults.headers.common['Pragma'] = 'no-cache';
axios.defaults.headers.common['Expires'] = '0';
